package com.naiterui.ehp.bs.weixin.handler;

import static me.chanjar.weixin.common.api.WxConsts.XmlMsgType;

import java.util.Map;
import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import org.springframework.stereotype.Component;

/**
 * @author gaoll gll910802@163.com
 */
@Component
public class MsgHandler extends AbstractHandler {

    @Override
    public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage,
        Map<String, Object> context, WxMpService weixinService,
        WxSessionManager sessionManager) {

        logger.info("MsgHandler , wxMessage={}", wxMessage);

        if (!wxMessage.getMsgType().equals(XmlMsgType.EVENT)) {
        }

        return null;
    }

}
